package com.founder.bdyx.wxpay.model;

/**
 * 分账接收方
 */
public class Receiver {
    /**
     * 分账接收方类型
     *
     * 1、MERCHANT_ID：商户号
     * 2、PERSONAL_OPENID：个人openid
     */
    private String type;
    /**
     * 分账接收方账号
     *
     * 1、类型是MERCHANT_ID时，是商户号（mch_id或者sub_mch_id）
     * 2、类型是PERSONAL_OPENID时，是个人openid
     */
    private String account;
    /**
     * 分账个人接收方姓名 非必填 默认空
     */
    private String name;
    /**
     * 分账金额 单位为分
     */
    private int amount;
    /**
     * 分账描述
     */
    private String description;

    /*返回参数部分*/
    private String result;//分账结果
    private String fail_reason;//分账失败原因
    private String create_time;//分账创建时间
    private String finish_time;//分账完成时间
    private String detail_id;//分账明细单号

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getFail_reason() {
        return fail_reason;
    }

    public void setFail_reason(String fail_reason) {
        this.fail_reason = fail_reason;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getFinish_time() {
        return finish_time;
    }

    public void setFinish_time(String finish_time) {
        this.finish_time = finish_time;
    }

    public String getDetail_id() {
        return detail_id;
    }

    public void setDetail_id(String detail_id) {
        this.detail_id = detail_id;
    }

    public Receiver() {
    }

    public Receiver(String type, String account, String name, int amount, String description) {
        this.type = type;
        this.account = account;
        this.name = name;
        this.amount = amount;
        this.description = description;
    }
}
